package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.TemporaryWorkersDao;
import com.site.wisdom_construction.entity.personnelModule.TemporaryWorkers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/5
 * @Description
 */
@Service
public class TemporaryWorkersService implements TemporaryWorkersDao {
    @Autowired
    private TemporaryWorkersDao temporaryWorkersDao;


    @Override
    public int insertTemporaryWorkers(Map map) {
        return temporaryWorkersDao.insertTemporaryWorkers(map);
    }

    @Override
    public int deleteTemporaryWorkers(Map map) {
        return temporaryWorkersDao.deleteTemporaryWorkers(map);
    }

    @Override
    public int updateTemporaryWorkers(Map map) {
        return temporaryWorkersDao.updateTemporaryWorkers(map);
    }

    @Override
    public List<TemporaryWorkers> findTemporaryWorkersByPage(Map map) {
        return temporaryWorkersDao.findTemporaryWorkersByPage(map);
    }

    @Override
    public long Total(Map map) {
        return temporaryWorkersDao.Total(map);
    }

    @Override
    public List<TemporaryWorkers> findTemporaryWorkersByCard(Map map) {
        return temporaryWorkersDao.findTemporaryWorkersByCard(map);
    }
}
